package com.njcky.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.njcky.utils.citylife.BigDecimalSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class SectionPoint implements Serializable {
    private static final long serialVersionUID = -3511235489803966843L;
    /**
     * 对象 ID
     */
    @ApiModelProperty(value = "id")
    private Integer objectid;
    /**
     * lineid
     */
    @ApiModelProperty(value = "关联管线id")
    private Integer lineid;

    /**
     * 当前索引
     */
    @ApiModelProperty(value = "当前索引值")
    private Integer currentIndex;

    /**
     * 类型名称
     */
    @ApiModelProperty(value = "连接的管线表名")
    private String typeName;

    /**
     * 编号
     */
    @ApiModelProperty(value = "管点编号")
    private String bh;
    /**
     * 管点点号
     */
    @ApiModelProperty(value = "管点点号")
    private String dh;
    /**
     * DMGC
     */
    @ApiModelProperty(value = "地面高程")
    @JsonSerialize(nullsUsing = NullSerializer.class,using = BigDecimalSerializer.class)
    private BigDecimal dmgc;
    /**
     * 点数
     */
    @ApiModelProperty(value = "x点")
    private BigDecimal pointX;
    /**
     * 尖
     */
    @ApiModelProperty(value = "yd点")
    private BigDecimal pointY;

    /**
     * 坐标
     */
    @ApiModelProperty(value = "坐标")
    private String coordinate;


    /**
     * 空间数据BUF
     */
    @ApiModelProperty(value = "几何buf字段")
    private String shapeBuf;

    /**
     * 结束标志
     */
    @ApiModelProperty(value = "关联管线id")
    private Integer endFlag =0;

    /**
     * 坐标
     */
    @ApiModelProperty(value = "坐标系")
    private String coor ="4326";

    /**
     * 坐标数字
     */
    @ApiModelProperty(value = "坐标系数")
    private String coorNum;
}
